

package com.zmks.jkgj.xuexiao.controller;




import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


import com.zmks.jkgj.core.controller.ABaseController;
import com.zmks.jkgj.core.resp.Resp;
import com.zmks.jkgj.xuexiao.resp.WebResp;
import com.zmks.jkgj.xuexiao.service.ICrctConfigSubjectService;
import com.zmks.jkgj.xuexiao.service.ICrctObjAccountService;
import com.zmks.jkgj.xuexiao.vo.CrctConfigSubjectVO;
import com.zmks.jkgj.xuexiao.vo.CrctObjAccountVO;
import com.zmks.jkgj.xuexiao.vo.CrctObjGradeVO;

@Controller
public class CrctConfigSubjectController extends ABaseController {
	
	 @Autowired
		
		private ICrctConfigSubjectService crctConfigSubjectService;	

		 
		
		 //查询
		@RequestMapping("/get_CrctConfigSubject_list")
		@ResponseBody
		public Resp get_CrctConfigSubject_list(
				) {
			WebResp 	webResp = new WebResp();
			 CrctConfigSubjectVO crctConfigSubjectVO=new  CrctConfigSubjectVO();
		   
		   webResp.setData(crctConfigSubjectService.getList(crctConfigSubjectVO));
			webResp.setTotalCount(crctConfigSubjectService.getCount(crctConfigSubjectVO));
		
			return webResp;
		}
		
		 //增加
		@RequestMapping("/save_CrctConfigSubject")
		@ResponseBody
		public Resp save_CrctConfigSubject( Integer pageIndex,
				Integer pageSize,HttpServletRequest request) {
			WebResp 	webResp = new WebResp();
		   CrctConfigSubjectVO CrctConfigSubjectVO=new  CrctConfigSubjectVO();
		   CrctConfigSubjectVO.setName("zhanghao");
		   CrctConfigSubjectVO.setModify_date(new Date());
		   crctConfigSubjectService.save(CrctConfigSubjectVO);
			return webResp;
		}
		 //删除
		@RequestMapping("/remove_CrctConfigSubject")
		@ResponseBody
		public Resp remove_CrctConfigSubject( Integer pageIndex,
				Integer pageSize,HttpServletRequest request) {
			WebResp 	webResp = new WebResp();
			CrctConfigSubjectVO CrctConfigSubjectVO=new  CrctConfigSubjectVO();
			crctConfigSubjectService.remove(CrctConfigSubjectVO);
			return webResp;
		}
	  
	
	
	
	

}
